﻿namespace Dissemination.MVC.Repositories
{
    using System.Linq;
    using System.Collections.Generic;
    using Dissemination.MVC.Models;

    public class GenderRepository : BaseRepository<Gender>
    {
        public GenderRepository()
        {
            EntityName = "Genders";
        }

        public override List<Gender> List()
        {
            return dataContext.Genders.ToList();
        }

        public override Gender Get(int id)
        {
            return dataContext.Genders.FirstOrDefault(g => g.GenderID == id);
        }
    }
}
